package shared.io.game;

import java.awt.Point;
import java.io.Serializable;

/**
 * Lightable class. This will light the maze.
 */
public class Lightable implements Serializable {

   private static final long serialVersionUID = 1L;
   /**
    * x position on the map
    */
   protected int x;
   /**
    * y position on the map
    */
   protected int y;
   
   public Lightable() {
      
   }
   
   public Lightable(int x, int y) {
      this.x = x;
      this.y = y;
   }

   public int getX() {
      return x;
   }

   public void setX(int x) {
      this.x = x;
   }

   public int getY() {
      return y;
   }

   public void setY(int y) {
      this.y = y;
   }
   
   public Point getLoc() {
      return new Point(x, y);
   }
   
   public void setLoc(int x, int y) {
      this.x = x;
      this.y = y;
   }
   
   public void setLoc(Point point) {
      this.x = point.x;
      this.y = point.y;
   }
}
